package com.code.day14;

import java.time.LocalDate;

public class Day14LocalDateGet {
    public static void main(String[] args) {
        LocalDate local1 = LocalDate.now();
        System.out.println(local1);
        System.out.println(local1.plusYears(1));

        LocalDate localDate =local1.withYear(2024).withMonth(10).withDayOfMonth(10);
        System.out.println(localDate.minusYears(1));
        System.out.println(localDate);
    }
}
